public class PhoneTest {
    public static void main(String[] args) {
        Phone p1 = new Phone("小米", 19000, "蓝");
        Phone p2 = new Phone("华为", 10, "红");
        Phone p3 = new Phone("魅族", 150, "白");
        Phone[] arr = new Phone[3];
        arr[0] = p1;
        arr[1] = p2;
        arr[2] = p3;

        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            Phone number = arr[i];
            sum = number.getPrice() + sum;
        }
        int vog = sum / 3;
        System.out.println(vog);


    }
}
